import { MessageType } from "./Constant";

export class Message {
    /**
     * 消息要发往那个模块
     */
    ModuleName: String;
    /**
     * 消息类型
     */
    Type: MessageType;
    /**
     * 消息内容
     */
    Content: any;

    constructor(ModuleName: String, Type: MessageType, Content: any) {
        this.ModuleName = ModuleName;
        this.Type = Type;
        this.Content = Content;
    }
}

